//const BASE_URL = 'http://localhost:8080/'
const BASE_URL = process.env.VUE_APP_URL
//请求地址统一管理
module.exports = {
    // LOGIN: `${BASE_URL}/user/login`,
    
    // GETUSERADDRESS: `${BASE_URL}/user/address`,
    // DELETEADDRESS: `${BASE_URL}/user/address`,
    // PUTADDRESS: `${BASE_URL}/user/address`,
    // POSTADDRESS: `${BASE_URL}/user/address`,

    // GETUSERINFO: `${BASE_URL}/user/userInfo`,
    // PUTUSERINFO: `${BASE_URL}/user/userInfo`,
    // POSTUSERINFO: `${BASE_URL}/user/userInfo`,

    // GETALLUSER: `${BASE_URL}/user/users`,

    //获取新闻
    GETNEWSBYTYPENUM: `${BASE_URL}/news/getNewsByTypeNum`,
    //后端api
    LOGIN: `${BASE_URL}/user/loginGetToken`,

    GETUSERINFOBYID: `${BASE_URL}/user/getUserInfoById`,

    USERMANAGE: `${BASE_URL}/user/userManage`,

    SEARCHUSER:`${BASE_URL}/user/searchUser`,

    ADDUSER:`${BASE_URL}/user/addUser`,

    REGISTERUSER:`${BASE_URL}/user/registerUser`,

    SAVEUSER:`${BASE_URL}/user/saveUser`,

    DELETEUSER:`${BASE_URL}/user/deleteUser`,

    UPDATEUSER:`${BASE_URL}/user/updateUser`,

    EDITUSER:`${BASE_URL}/user/editUser`,
    
    GETALLBOOK:`${BASE_URL}/book/getAllbook`,

    DELETEBOOK:`${BASE_URL}/book/deletebook`,

    ADDBOOK:`${BASE_URL}/book/savebook`,

    UPDATEBOOK:`${BASE_URL}/book/updatebook`,
     
    GETONEUSERBYID:`${BASE_URL}/user/getOneUserById`,  //获取个人信息API  
    
    ADDHELP:`${BASE_URL}/help/addHelp`,    //添加帮助

    GETALLHELP:`${BASE_URL}/help/getAllHelp`,  //拿到所有帮助列表

    HELPHIM:`${BASE_URL}/help/helpHim`,   //帮助他

    GETMYHELPS:`${BASE_URL}/help/getMyHelps`,   //得到自己发布的帮助

    UPDATEHELPS:`${BASE_URL}/help/updateHelps`,  //修改帮助表
 
   FINISHHELP:`${BASE_URL}/help/finishHelp`,   //完成帮助方法

   DELETEHELP:`${BASE_URL}/help/deleteHelp`,

   MYHELP:`${BASE_URL}/help/Myhelp`,

   MYHELP1:`${BASE_URL}/help/Myhelp1`,

   CANCELHELP:`${BASE_URL}/help/cancelHelp`,

   UPDATEUSERPASSWORD:`${BASE_URL}/user/updateUserPassword`,
}